Skip to content

bugfix(Android): zIndex issues on android #8061 #8136

Merged
d4vidi merged 4 commits intomasterfrom
bugfix/8061-overlay-with-a-view-with-stylezindex-blocks-touches
Nov 3, 2025
Merged

bugfix(Android): zIndex issues on android #8061 #8136
d4vidi merged 4 commits intomasterfrom
bugfix/8061-overlay-with-a-view-with-stylezindex-blocks-touches

Conversation

@gosha212
Copy link
Copy Markdown
Contributor

@gosha212 gosha212 commented Nov 2, 2025

fixes #8061

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for handling React Native's DebuggingOverlay in touch event delegation to prevent it from incorrectly intercepting touch events. The main change refactors touch coordinate checking to skip DebuggingOverlay views when determining if a touch event is inside the actual React content.

  • Introduced a new isInsideView() method that iterates through ReactView children and filters out DebuggingOverlay containers
  • Updated handleDown() to use the new isInsideView() method instead of directly checking coordinates
  • Added comprehensive test mocks to simulate the React view hierarchy including DebuggingOverlay

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
OverlayTouchDelegate.kt Refactored touch coordinate checking logic to skip DebuggingOverlay views when determining if touch events are inside React content
OverlayTouchDelegateTest.java Updated test setup to mock the complete React view hierarchy including DebuggingOverlay for testing the new filtering behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@d4vidi d4vidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions and requests... please read 🙏🏻

@d4vidi d4vidi merged commit 3bde637 into master Nov 3, 2025
4 checks passed
@d4vidi d4vidi deleted the bugfix/8061-overlay-with-a-view-with-stylezindex-blocks-touches branch November 3, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overlay with a view with style={zIndex} blocks touches

4 participants